<?php
/**
 *  💡 免责声明：本软件不得用于商业用途，仅做学习交流
 *  ⚠️ 权利声明：本软件由版权人提供产品技术支持
 *  📅 项目编号：NX2025-0135
 */
namespace App\Console\Commands;

use App\Service\User\PointAccountServices;
use App\Service\User\SinglePoolService;
use Illuminate\Console\Command;

class DailyAutoDividends extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'AutoDividends';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = '每日积分自动释放';

    /**
     * Create a new command instance.
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     *
     * @return int
     */
    public function handle()
    {
//        PointAccountServices::make()->beanAutoDividends();
        PointAccountServices::make()->DynamicDividendDistribution(); //动态分红
        SinglePoolService::make()->SingleAutoDividends(); //静态分红
    }
}
